<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="../js/axios-0.18.0.js"></script>
<script src="../js/vue.js"></script>
<body>
    <div id="app">
        <table>
            <tr>
                <td>id</td>
                <td>name</td>
                <td>gender</td>
                <td>password</td>
                <td>age</td>
                <td>tel</td>
            </tr>

            <tr v-for="item in page">
                <td>{{item.id}}</td>
                <td>name</td>
                <td>gender</td>
                <td>password</td>
                <td>age</td>
                <td>tel</td>
            </tr>
        </table>
    </div>
<script>
    new Vue({
        el:"#app",
        data:{
            page:[]
        },
        created(){
            this.findPage()
        },
        methods:{
            findPage(){
                axios.get("http://localhost:8080/users/all").then(function (resp) {

                    this.page = resp.data.page
                })
            }
        }
    })
</script>
</body>
</html>